package com.bdqn.shiro.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName cst_service
 */
@TableName(value ="cst_service")
@Data
public class CstService implements Serializable {
    /**
     * 服务编号
     */
    @TableId(type = IdType.AUTO)
    private Long svrId;

    /**
     * 服务类型
     */
    private String svrType;

    /**
     * 概要
     */
    private String svrTitle;

    /**
     * 客户编号
     */
    private String svrCustNo;

    /**
     * 客户姓名
     */
    private String svrCustName;

    /**
     * 服务状态
     */
    private String svrStatus;

    /**
     * 服务请求
     */
    private String svrRequest;

    /**
     * 创建人编号
     */
    private Long svrCreateId;

    /**
     * 创建人姓名
     */
    private String svrCreateBy;

    /**
     * 创建时间
     */
    private Date svrCreateDate;

    /**
     * 分配人编号
     */
    private Long svrDueId;

    /**
     * 分配人姓名
     */
    private String svrDueTo;

    /**
     * 分配时间
     */
    private Date svrDueDate;

    /**
     * 服务处理
     */
    private String svrDeal;

    /**
     * 处理人编号
     */
    private Long svrDealId;

    /**
     * 处理人姓名
     */
    private String svrDealBy;

    /**
     * 处理时间
     */
    private Date svrDealDate;

    /**
     * 处理结果
     */
    private String svrResult;

    /**
     * 满意度
     */
    private Integer svrSatisfy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CstService other = (CstService) that;
        return (this.getSvrId() == null ? other.getSvrId() == null : this.getSvrId().equals(other.getSvrId()))
            && (this.getSvrType() == null ? other.getSvrType() == null : this.getSvrType().equals(other.getSvrType()))
            && (this.getSvrTitle() == null ? other.getSvrTitle() == null : this.getSvrTitle().equals(other.getSvrTitle()))
            && (this.getSvrCustNo() == null ? other.getSvrCustNo() == null : this.getSvrCustNo().equals(other.getSvrCustNo()))
            && (this.getSvrCustName() == null ? other.getSvrCustName() == null : this.getSvrCustName().equals(other.getSvrCustName()))
            && (this.getSvrStatus() == null ? other.getSvrStatus() == null : this.getSvrStatus().equals(other.getSvrStatus()))
            && (this.getSvrRequest() == null ? other.getSvrRequest() == null : this.getSvrRequest().equals(other.getSvrRequest()))
            && (this.getSvrCreateId() == null ? other.getSvrCreateId() == null : this.getSvrCreateId().equals(other.getSvrCreateId()))
            && (this.getSvrCreateBy() == null ? other.getSvrCreateBy() == null : this.getSvrCreateBy().equals(other.getSvrCreateBy()))
            && (this.getSvrCreateDate() == null ? other.getSvrCreateDate() == null : this.getSvrCreateDate().equals(other.getSvrCreateDate()))
            && (this.getSvrDueId() == null ? other.getSvrDueId() == null : this.getSvrDueId().equals(other.getSvrDueId()))
            && (this.getSvrDueTo() == null ? other.getSvrDueTo() == null : this.getSvrDueTo().equals(other.getSvrDueTo()))
            && (this.getSvrDueDate() == null ? other.getSvrDueDate() == null : this.getSvrDueDate().equals(other.getSvrDueDate()))
            && (this.getSvrDeal() == null ? other.getSvrDeal() == null : this.getSvrDeal().equals(other.getSvrDeal()))
            && (this.getSvrDealId() == null ? other.getSvrDealId() == null : this.getSvrDealId().equals(other.getSvrDealId()))
            && (this.getSvrDealBy() == null ? other.getSvrDealBy() == null : this.getSvrDealBy().equals(other.getSvrDealBy()))
            && (this.getSvrDealDate() == null ? other.getSvrDealDate() == null : this.getSvrDealDate().equals(other.getSvrDealDate()))
            && (this.getSvrResult() == null ? other.getSvrResult() == null : this.getSvrResult().equals(other.getSvrResult()))
            && (this.getSvrSatisfy() == null ? other.getSvrSatisfy() == null : this.getSvrSatisfy().equals(other.getSvrSatisfy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSvrId() == null) ? 0 : getSvrId().hashCode());
        result = prime * result + ((getSvrType() == null) ? 0 : getSvrType().hashCode());
        result = prime * result + ((getSvrTitle() == null) ? 0 : getSvrTitle().hashCode());
        result = prime * result + ((getSvrCustNo() == null) ? 0 : getSvrCustNo().hashCode());
        result = prime * result + ((getSvrCustName() == null) ? 0 : getSvrCustName().hashCode());
        result = prime * result + ((getSvrStatus() == null) ? 0 : getSvrStatus().hashCode());
        result = prime * result + ((getSvrRequest() == null) ? 0 : getSvrRequest().hashCode());
        result = prime * result + ((getSvrCreateId() == null) ? 0 : getSvrCreateId().hashCode());
        result = prime * result + ((getSvrCreateBy() == null) ? 0 : getSvrCreateBy().hashCode());
        result = prime * result + ((getSvrCreateDate() == null) ? 0 : getSvrCreateDate().hashCode());
        result = prime * result + ((getSvrDueId() == null) ? 0 : getSvrDueId().hashCode());
        result = prime * result + ((getSvrDueTo() == null) ? 0 : getSvrDueTo().hashCode());
        result = prime * result + ((getSvrDueDate() == null) ? 0 : getSvrDueDate().hashCode());
        result = prime * result + ((getSvrDeal() == null) ? 0 : getSvrDeal().hashCode());
        result = prime * result + ((getSvrDealId() == null) ? 0 : getSvrDealId().hashCode());
        result = prime * result + ((getSvrDealBy() == null) ? 0 : getSvrDealBy().hashCode());
        result = prime * result + ((getSvrDealDate() == null) ? 0 : getSvrDealDate().hashCode());
        result = prime * result + ((getSvrResult() == null) ? 0 : getSvrResult().hashCode());
        result = prime * result + ((getSvrSatisfy() == null) ? 0 : getSvrSatisfy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", svrId=").append(svrId);
        sb.append(", svrType=").append(svrType);
        sb.append(", svrTitle=").append(svrTitle);
        sb.append(", svrCustNo=").append(svrCustNo);
        sb.append(", svrCustName=").append(svrCustName);
        sb.append(", svrStatus=").append(svrStatus);
        sb.append(", svrRequest=").append(svrRequest);
        sb.append(", svrCreateId=").append(svrCreateId);
        sb.append(", svrCreateBy=").append(svrCreateBy);
        sb.append(", svrCreateDate=").append(svrCreateDate);
        sb.append(", svrDueId=").append(svrDueId);
        sb.append(", svrDueTo=").append(svrDueTo);
        sb.append(", svrDueDate=").append(svrDueDate);
        sb.append(", svrDeal=").append(svrDeal);
        sb.append(", svrDealId=").append(svrDealId);
        sb.append(", svrDealBy=").append(svrDealBy);
        sb.append(", svrDealDate=").append(svrDealDate);
        sb.append(", svrResult=").append(svrResult);
        sb.append(", svrSatisfy=").append(svrSatisfy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}